//
//  NSString+NSStringHelper.h
//  SchoolPlus
//
//  Created by haoyi on 13-7-1.
//  Copyright (c) 2013年 haoyi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonCryptor.h>

@interface NSString (NSStringHelper)

-(NSString *)GetCurrntNet;

//中文网址路径转换URLEncode
-(NSString *)URLEncodedString;
//UTF-8 转成 没有乱码的url
-(NSString *)URLEncodeFromUTF8Str;
//中文 转成 没有乱码的url
-(NSString *)URLEncodeFromGB2312Str;
//MD5加密
-(NSString *)MD5HexDigestStr;
//账号 包含字母数字下划线
- (BOOL)CheckZhangHao;
//手机号
-(BOOL)CheckTelNumber;
//邮箱格式
-(BOOL)CheckEmail;
//密码格式
-(BOOL)CheckPassword;
//密码格式
-(BOOL)CheckPassword2;
//是否包含中文
- (BOOL)IsContainedChinese;
//有效地址
-(BOOL)CheckAddress;
//验证非零的正整数
-(BOOL)CheckFeilingzhengzhengshu;
//验证金额
-(BOOL)CheckJinE;

//土土商户邀请码
- (BOOL)CheckInvitationCode;
//判断文件格式
-(BOOL)checkfileformat;
-(BOOL)checkfileisvedio;

-(NSString *)checkfiletype;
-(NSString *)stringByDecodingURLFormat;

@end
